(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78],{6649:function(e,n,t){"use strict";var i,o,r=t(5697),a=t.n(r),s=t(7294);function _extends(){return(_extends=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}function _objectWithoutPropertiesLoose(e,n){if(null==e)return{};var t,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)t=r[i],n.indexOf(t)>=0||(o[t]=e[t]);return o}var c=(i=o={exports:{}},o.exports,function(e){if("undefined"!=typeof window){var n,t=0,o=!1,r=!1,a=7,s="[iFrameSizer]",c=s.length,d=null,l=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},f=null,m={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){warn("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},h={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each(function(n,t){setupIFrame(t,e)}).end()}):info("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],factory):i.exports=factory(),window.iFrameResize=window.iFrameResize||factory()}function getMutationObserver(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function addEventListener(e,n,t){e.addEventListener(n,t,!1)}function removeEventListener(e,n,t){e.removeEventListener(n,t,!1)}function isLogEnabled(e){return g[e]?g[e].log:o}function log(e,n){output("log",e,n,isLogEnabled(e))}function info(e,n){output("info",e,n,isLogEnabled(e))}function warn(e,n){output("warn",e,n,!0)}function output(e,n,t,i){if(!0===i&&"object"==typeof window.console){var o;console[e](s+"["+(o="Host page: "+n,window.top!==window.self&&(o=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+n:"Nested host page: "+n),o)+"]",t)}}function iFrameListener(e){function resizeIFrame(){ensureInRange("Height"),ensureInRange("Width"),syncResize(function(){var e;setSize(p),setPagePosition(b),chkEvent(b,"onResized",p)},p,"init")}function ensureInRange(e){var n=Number(g[b]["max"+e]),t=Number(g[b]["min"+e]),i=e.toLowerCase(),o=Number(p[i]);log(b,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,log(b,"Set "+i+" to min value")),o>n&&(o=n,log(b,"Set "+i+" to max value")),p[i]=""+o}function getMsgBody(e){return m.substr(m.indexOf(":")+a+e)}function sendPageInfoToIframe(e,n){var t;t=function(){var t,i;trigger("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(i=p.iframe.getBoundingClientRect()).height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},h[n]||(h[n]=setTimeout(function(){h[n]=null,t()},32))}function getElementPosition(e){var n=e.getBoundingClientRect();return getPagePosition(b),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function scrollRequestFromChild(e){var n=e?getElementPosition(p.iframe):{x:0,y:0},t={x:Number(p.width)+n.x,y:Number(p.height)+n.y};log(b,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):warn(b,"Unable to scroll to requested position, window.parentIFrame not found"):(d=t,scrollTo(),log(b,"--"))}function scrollTo(){var e;!1!==chkEvent(b,"onScroll",d)?setPagePosition(b):d=null}function onMouse(e){var n;n={iframe:p.iframe,screenX:p.width,screenY:p.height,type:p.type},chkEvent(b,e,n)}var n,t,i,o,r,l,u,f,m=e.data,p={},b=null;"[iFrameResizerChild]Ready"===m?!function(){for(var e in g)trigger("iFrame requested init",createOutgoingMsg(e),g[e].iframe,e)}():s===(""+m).substr(0,c)&&m.substr(c).split(":")[0]in g?(t=(n=m.substr(c).split(":"))[1]?parseInt(n[1],10):0,i=g[n[0]]&&g[n[0]].iframe,o=getComputedStyle(i),g[b=(p={iframe:i,id:n[0],height:t+("border-box"!==o.boxSizing?0:(o.paddingTop?parseInt(o.paddingTop,10):0)+(o.paddingBottom?parseInt(o.paddingBottom,10):0))+("border-box"!==o.boxSizing?0:(o.borderTopWidth?parseInt(o.borderTopWidth,10):0)+(o.borderBottomWidth?parseInt(o.borderBottomWidth,10):0)),width:n[2],type:n[3]}).id]&&(g[b].loaded=!0),(r=p.type in{true:1,false:1,undefined:1})&&log(b,"Ignoring init message from meta parent page"),!r&&(u=!0,g[l=b]||(u=!1,warn(p.type+" No settings for "+l+". Message was: "+m)),u)&&(log(b,"Received: "+m),f=!0,null===p.iframe&&(warn(b,"IFrame ("+p.id+") not found"),f=!1),f&&function(){var n,t=e.origin,i=g[b]&&g[b].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(log(b,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(n=g[b]&&g[b].remoteHost,log(b,"Checking connection is from: "+n),t===n)))throw Error("Unexpected message received from: "+t+" for "+p.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){var e,n,t,i,o,r,a;switch(g[b]&&g[b].firstRun&&g[b]&&(g[b].firstRun=!1),p.type){case"close":closeIFrame(p.iframe);break;case"message":e=getMsgBody(6),log(b,"onMessage passed: {iframe: "+p.iframe.id+", message: "+e+"}"),t={iframe:p.iframe,message:JSON.parse(e)},chkEvent(b,"onMessage",t),log(b,"--");break;case"mouseenter":onMouse("onMouseEnter");break;case"mouseleave":onMouse("onMouseLeave");break;case"autoResize":g[b].autoResize=JSON.parse(getMsgBody(9));break;case"scrollTo":scrollRequestFromChild(!1);break;case"scrollToOffset":scrollRequestFromChild(!0);break;case"pageInfo":sendPageInfoToIframe(g[b]&&g[b].iframe,b),function(){function setListener(n,t){function sendPageInfo(){g[e]?sendPageInfoToIframe(g[e].iframe,e):stop()}["scroll","resize"].forEach(function(i){log(e,n+i+" listener for sendPageInfo"),t(window,i,sendPageInfo)})}function stop(){setListener("Remove ",removeEventListener)}var e=b;setListener("Add ",addEventListener),g[e]&&(g[e].stopPageInfo=stop)}();break;case"pageInfoStop":g[b]&&g[b].stopPageInfo&&(g[b].stopPageInfo(),delete g[b].stopPageInfo);break;case"inPageLink":r=decodeURIComponent(o=getMsgBody(9).split("#")[1]||""),(a=document.getElementById(r)||document.getElementsByName(r)[0])?(i=getElementPosition(a),log(b,"Moving to in page link (#"+o+") at x: "+i.x+" y: "+i.y),d={x:i.x,y:i.y},scrollTo(),log(b,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(o):log(b,"In page link #"+o+" not found and window.parentIFrame not found"):log(b,"In page link #"+o+" not found");break;case"reset":resetIFrame(p);break;case"init":resizeIFrame(),n=p.iframe,chkEvent(b,"onInit",n);break;default:resizeIFrame()}}())):info(b,"Ignored: "+m)}function chkEvent(e,n,t){var i=null,o=null;if(g[e]){if("function"==typeof(i=g[e][n]))o=i(t);else throw TypeError(n+" on iFrame["+e+"] is not a function")}return o}function removeIframeListeners(e){var n=e.id;delete g[n]}function closeIFrame(e){var n=e.id;if(!1===chkEvent(n,"onClose",n)){log(n,"Close iframe cancelled by onClose event");return}log(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){warn(e)}chkEvent(n,"onClosed",n),log(n,"--"),removeIframeListeners(e)}function getPagePosition(n){null===d&&log(n,"Get page position: "+(d={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+d.y)}function setPagePosition(e){null!==d&&(window.scrollTo(d.x,d.y),log(e,"Set page position: "+d.x+","+d.y),d=null)}function resetIFrame(e){log(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),getPagePosition(e.id),syncResize(function(){setSize(e),trigger("reset","reset",e.iframe,e.id)},e,"reset")}function setSize(e){function processDimension(t){(function(t){if(!e.id){log("undefined","messageData id not set");return}e.iframe.style[t]=e[t]+"px",log(e.id,"IFrame ("+n+") "+t+" set to "+e[t]+"px")})(t),r||"0"!==e[t]||(r=!0,log(n,"Hidden iFrame detected, creating visibility listener"),function(){function checkIFrames(){Object.keys(g).forEach(function(e){!function(e){function chkDimension(n){return"0px"===(g[e]&&g[e].iframe.style[n])}g[e]&&null!==g[e].iframe.offsetParent&&(chkDimension("height")||chkDimension("width"))&&trigger("Visibility change","resize",g[e].iframe,e)}(e)})}var e,n=getMutationObserver();n&&(e=document.querySelector("body"),new n(function(e){log("window","Mutation observed: "+e[0].target+" "+e[0].type),debouce(checkIFrames,16)}).observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}var n=e.iframe.id;g[n]&&(g[n].sizeHeight&&processDimension("height"),g[n].sizeWidth&&processDimension("width"))}function syncResize(e,n,t){t!==n.type&&l&&!window.jasmine?(log(n.id,"Requesting animation frame"),l(e)):e()}function trigger(e,n,t,i,o){var r=!1;g[i=i||t.id]&&(function(){if(t&&"contentWindow"in t&&null!==t.contentWindow){var o;o=g[i]&&g[i].targetOrigin,log(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+o),t.contentWindow.postMessage(s+n,o)}else warn(i,"["+e+"] IFrame("+i+") not found")}(),o&&g[i]&&g[i].warningTimeout&&(g[i].msgTimeout=setTimeout(function(){!g[i]||g[i].loaded||r||(r=!0,warn(i,"IFrame has not responded within "+g[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},g[i].warningTimeout)))}function createOutgoingMsg(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod}function setupIFrame(n,i){function depricate(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],warn(s,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var r,a,s=function(e){if(""===e){var r;n.id=(r=i&&i.id||m.id+t++,null!==document.getElementById(r)&&(r+=t++),e=r),o=(i||{}).log,log(e,"Added missing iframe ID: "+e+" ("+n.src+")")}return e}(n.id);s in g&&"iFrameResizer"in n?warn(s,"Ignored iFrame, already setup."):(function(e){if(e=e||{},g[s]={firstRun:!0,iframe:n,remoteHost:n.src&&n.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw TypeError("Options is not an object")}(e),Object.keys(e).forEach(depricate,e),function(e){for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&(g[s][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:m[n])}(e),g[s]){var t;g[s].targetOrigin=!0===g[s].checkOrigin?""===(t=g[s].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*"}}(i),function(){switch(log(s,"IFrame scrolling "+(g[s]&&g[s].scrolling?"enabled":"disabled")+" for "+s),n.style.overflow=!1===(g[s]&&g[s].scrolling)?"hidden":"auto",g[s]&&g[s].scrolling){case"omit":break;case!0:n.scrolling="yes";break;case!1:n.scrolling="no";break;default:n.scrolling=g[s]?g[s].scrolling:"no"}}(),function(){function addStyle(e){1/0!==g[s][e]&&0!==g[s][e]&&(n.style[e]=g[s][e]+"px",log(s,"Set "+e+" = "+g[s][e]+"px"))}function chkMinMax(e){if(g[s]["min"+e]>g[s]["max"+e])throw Error("Value for min"+e+" can not be greater than max"+e)}chkMinMax("Height"),chkMinMax("Width"),addStyle("maxHeight"),addStyle("minHeight"),addStyle("maxWidth"),addStyle("minWidth")}(),("number"==typeof(g[s]&&g[s].bodyMargin)||"0"===(g[s]&&g[s].bodyMargin))&&(g[s].bodyMarginV1=g[s].bodyMargin,g[s].bodyMargin=""+g[s].bodyMargin+"px"),r=createOutgoingMsg(s),(a=getMutationObserver())&&n.parentNode&&new a(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===n&&closeIFrame(n)})})}).observe(n.parentNode,{childList:!0}),addEventListener(n,"load",function(){var t,i;trigger("iFrame.onload",r,n,e,!0),t=g[s]&&g[s].firstRun,i=g[s]&&g[s].heightCalculationMethod in u,!t&&i&&resetIFrame({iframe:n,height:0,width:0,type:"init"})}),trigger("init",r,n,e,!0),g[s]&&(g[s].iframe.iFrameResizer={close:closeIFrame.bind(null,g[s].iframe),removeListeners:removeIframeListeners.bind(null,g[s].iframe),resize:trigger.bind(null,"Window resize","resize",g[s].iframe),moveToAnchor:function(e){trigger("Move to anchor","moveToAnchor:"+e,g[s].iframe,s)},sendMessage:function(e){trigger("Send Message","message:"+(e=JSON.stringify(e)),g[s].iframe,s)}}))}function debouce(e,n){null===f&&(f=setTimeout(function(){f=null,e()},n))}function tabVisible(){"hidden"!==document.visibilityState&&(log("document","Trigger event: Visiblity change"),debouce(function(){sendTriggerMsg("Tab Visable","resize")},16))}function sendTriggerMsg(e,n){Object.keys(g).forEach(function(t){g[t]&&"parent"===g[t].resizeFrom&&g[t].autoResize&&!g[t].firstRun&&trigger(e,n,g[t].iframe,t)})}function factory(){var n;function init(e,t){t&&(function(){if(t.tagName){if("IFRAME"!==t.tagName.toUpperCase())throw TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}else throw TypeError("Object is not a valid DOM element")}(),setupIFrame(t,e),n.push(t))}return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!l;e+=1)l=window[n[e]+"RequestAnimationFrame"];l?l=l.bind(window):log("setup","RequestAnimationFrame not supported")}(),addEventListener(window,"message",iFrameListener),addEventListener(window,"resize",function(){var e;log("window","Trigger event: "+(e="resize")),debouce(function(){sendTriggerMsg("Window "+e,"resize")},16)}),addEventListener(document,"visibilitychange",tabVisible),addEventListener(document,"-webkit-visibilitychange",tabVisible),function(t,i){switch(n=[],t&&t.enablePublicMethods&&warn("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),init.bind(e,t));break;case"object":init(t,i);break;default:throw TypeError("Unexpected data type ("+typeof i+")")}return n}}}(),o.exports),warning_1=function(){},IframeResizer=function(e){var n=e.title,t=e.forwardRef,i=_objectWithoutPropertiesLoose(e,["title","forwardRef"]),o=(i.autoResize,i.bodyBackground,i.bodyMargin,i.bodyPadding,i.checkOrigin,i.inPageLinks,i.heightCalculationMethod,i.interval,i.log,i.maxHeight,i.maxWidth,i.minHeight,i.minWidth,i.resizeFrom,i.scrolling,i.sizeHeight,i.sizeWidth,i.warningTimeout,i.tolerance,i.widthCalculationMethod,i.onClosed,i.onInit,i.onMessage,i.onMouseEnter,i.onMouseLeave,i.onResized,_objectWithoutPropertiesLoose(i,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"])),r=(0,s.useRef)(null),onClose=function(){return warning_1(!r.current,"[iframeSizerReact]["+(r&&r.current&&r.current.id)+"] Close event ignored, to remove the iframe update your React component"),!r.current};return(0,s.useEffect)(function(){var e=r.current;return c(_extends({},i,{onClose:onClose}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}},[]),(0,s.useImperativeHandle)(t,function(){return{resize:function(){return r.current.iFrameResizer.resize()},moveToAnchor:function(e){return r.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,n){r.current.iFrameResizer.sendMessage(e,n)}}}),s.createElement("iframe",_extends({title:n},o,{ref:r}))};IframeResizer.defaultProps={title:"iframe"},IframeResizer.propTypes={title:a().string},n.Z=IframeResizer},9008:function(e,n,t){e.exports=t(9201)},2703:function(e,n,t){"use strict";var i=t(414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,n,t,o,r,a){if(a!==i){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},5697:function(e,n,t){e.exports=t(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);